package com.ys.web.service;

import java.util.List;

import com.ys.web.entity.User;
import com.ys.web.pojo.UserInfo;

/**
 * 用户表 -Service-接口
 * @author goldfish
 *
 */
public interface UserService {
 	
	/**
 	 * 根据id删除对象
 	 * @param id
 	 */
	public void delete(Integer id) throws Exception;
 	
	/**
	 * 新增用户信息
	 * @param userinfo
	 * @return
	 */
 	public Integer add(UserInfo userinfo) throws Exception;
 	
 	/**
 	 * 更新角色信息
 	 * @param userinfo
 	 */
 	public void save(UserInfo userinfo) throws Exception;
 	
 	
 	/**
 	 * 获取用户信息
 	 * @param id
 	 * @return
 	 */
 	public UserInfo getUserInfo(Integer id) throws Exception;
 	
 	
 	/**
 	 * 获取用户信息表
 	 */
 	public List<UserInfo> getUserInfoPage(int page) throws Exception;
 	
 	
 	/**
 	 * 获取所有用户信息
 	 * @return
 	 * @throws Exception
 	 */
 	public List<UserInfo> getAllUserInfo() throws Exception;
 	
 	/**
 	 * 获取所有sem信息
 	 * @return
 	 * @throws Exception
 	 */
 	public List<UserInfo> getAllSemUser() throws Exception;
 	
 	/**
 	 * 通过用户名获取用户
 	 * @param username
 	 * @return
 	 * @throws Exception
 	 */
 	public User getUserByUsername(String username) throws Exception;
 	
 	
 	/**
 	 * 用户名是否存在
 	 * @param username
 	 * @return
 	 * @throws Exception 
 	 */
 	public Boolean isUsernameExist(String username) throws Exception;
 	
 	/**
 	 * 通过员工名称获取用户
 	 * @param employeeName
 	 * @return
 	 * @throws Exception
 	 */
 	public User getUserByEmployeeName(String employeeName) throws Exception;
 	
}
